package com.zl.gmadmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zl.gmadmin.entity.SysMenu;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * @author zhangliang
 * @version 1.0
 * @date 2021/2/2 15:57
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据权限列表ids查询菜单路由
     * @param ids
     * @return
     */
    List<SysMenu> selectByRoleIdList(Set<Long> ids);

    /**
     * 根据id删除相关角色表
     * @param idList
     * @return
     */
    Integer deleteConnectedRoles(Collection<? extends Serializable> idList);
}
